package com.nmsl.nurse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.nurse.mapper.MHospitalNursingRecordMapper;
import com.nmsl.nurse.domain.MHospitalNursingRecord;
import com.nmsl.nurse.service.IMHospitalNursingRecordService;

/**
 * 患者住院护理记录Service业务层处理
 * 
 * @author mengdi
 * @date 2025-02-19
 */
@Service
public class MHospitalNursingRecordServiceImpl implements IMHospitalNursingRecordService
{
    @Autowired
    private MHospitalNursingRecordMapper MHospitalNursingRecordMapper;

    /**
     * 查询患者住院护理记录
     * 
     * @param nursingRecordId 患者住院护理记录主键
     * @return 患者住院护理记录
     */
    @Override
    public MHospitalNursingRecord selectHospitalNursingRecordByNursingRecordId(Long nursingRecordId)
    {
        return MHospitalNursingRecordMapper.selectHospitalNursingRecordByNursingRecordId(nursingRecordId);
    }

    /**
     * 查询患者住院护理记录列表
     * 
     * @param MHospitalNursingRecord 患者住院护理记录
     * @return 患者住院护理记录
     */
    @Override
    public List<MHospitalNursingRecord> selectHospitalNursingRecordList(MHospitalNursingRecord MHospitalNursingRecord)
    {
        return MHospitalNursingRecordMapper.selectHospitalNursingRecordList(MHospitalNursingRecord);
    }

    /**
     * 新增患者住院护理记录
     * 
     * @param MHospitalNursingRecord 患者住院护理记录
     * @return 结果
     */
    @Override
    public int insertHospitalNursingRecord(MHospitalNursingRecord MHospitalNursingRecord)
    {
        return MHospitalNursingRecordMapper.insertHospitalNursingRecord(MHospitalNursingRecord);
    }

    /**
     * 修改患者住院护理记录
     * 
     * @param MHospitalNursingRecord 患者住院护理记录
     * @return 结果
     */
    @Override
    public int updateHospitalNursingRecord(MHospitalNursingRecord MHospitalNursingRecord)
    {
        return MHospitalNursingRecordMapper.updateHospitalNursingRecord(MHospitalNursingRecord);
    }

    /**
     * 批量删除患者住院护理记录
     * 
     * @param nursingRecordIds 需要删除的患者住院护理记录主键
     * @return 结果
     */
    @Override
    public int deleteHospitalNursingRecordByNursingRecordIds(Long[] nursingRecordIds)
    {
        return MHospitalNursingRecordMapper.deleteHospitalNursingRecordByNursingRecordIds(nursingRecordIds);
    }

    /**
     * 删除患者住院护理记录信息
     * 
     * @param nursingRecordId 患者住院护理记录主键
     * @return 结果
     */
    @Override
    public int deleteHospitalNursingRecordByNursingRecordId(Long nursingRecordId)
    {
        return MHospitalNursingRecordMapper.deleteHospitalNursingRecordByNursingRecordId(nursingRecordId);
    }

    @Override
    public List<MHospitalNursingRecord> selectHospitalNursingRecordListAndMHospitalizationRegistration(MHospitalNursingRecord MHospitalNursingRecord) {
        return MHospitalNursingRecordMapper.selectHospitalNursingRecordListAndMHospitalizationRegistration(MHospitalNursingRecord);
    }
}
